package com.matt.domain.courseV2;

import com.dotflat.util.excelUtil.Excel;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.matt.commons.model.Domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 课程 - 活动课内容
 */
@Entity
@Table(name = "tc_course_content")
@EqualsAndHashCode(callSuper = true)
@Data
public class VendorCourseContent extends Domain implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonIgnore
    private Boolean deleted = false;

    @Column(columnDefinition = "varchar(32)   COMMENT '课程包ID' ")
    private String vendorPackageId;

    @Column(columnDefinition = "varchar(32)   COMMENT '课程ID' ")
    private String courseId;

    @Column(columnDefinition = "varchar(255)   COMMENT '标题' ")
    private String title;

    @Column(columnDefinition = "text   COMMENT '内容' ")
    private String content;

    @Column(columnDefinition = "varchar(255)   COMMENT '厂商ID' ")
    private String vendorId;

    @Column(columnDefinition = " varchar(255) default 'txt'  COMMENT ' 类型：视频video,音频radio,图片image,文本txt ' ")
    private String type;

    @Column(columnDefinition = " int DEFAULT 1 COMMENT ' 显示顺序 ' ")
    private Integer orderNum;

    @Column(columnDefinition = "varchar(255)   COMMENT '时长（分钟）' ")
    private String durations;

    @Column(columnDefinition = "varchar(32)  default '0'   COMMENT '父级ID' ")
    private String parentId = "0";

    @Column(columnDefinition = " varchar(255)  COMMENT '开始时间' ")
    private String beginAt;

    @Column(columnDefinition = " varchar(255)   COMMENT '结束时间' ")
    private String endAt;

    @Column(columnDefinition = " varchar(255)   COMMENT '封面' ")
    private String cover;

    @Column(columnDefinition = " text   COMMENT '教具' ")
    private String tools;

    @Column(columnDefinition = " int DEFAULT 0  COMMENT '子集类型：0无子集，1子集列表，2附件列表' ")
    private Integer parentType = 0;

    @Column(columnDefinition = " int DEFAULT 0  COMMENT '菜单样式：0默认，1圆形样式，2时间样式' ")
    private Integer menuStyle = 0;

    @Column(columnDefinition = " varchar(255)   COMMENT '备注' ")
    private String remark;

    @Column(columnDefinition = "varchar(32)  COMMENT '创建人'")
    private String createdBy;

    @Column(columnDefinition = "varchar(255)  COMMENT '创建人名称'")
    private String createdName;

    @Column(columnDefinition = " text   COMMENT '信息' ")
    private String details;

    @Column(columnDefinition = " int DEFAULT 0  COMMENT '课程详情类型，0详情，1教保指引' ")
    private Integer detailsType;

    @Column(columnDefinition = " int DEFAULT 0  COMMENT '种类类型，0本课程 1全机构端，2月，3周' ")
    private Integer categoryType;

}